@layout("/common/_container.html",{js:["/assets/sysSell/sysSell.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">挂售管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <select id="contractType">
                                    <option value="">合约类别</option>
                                    <option value="0">新手合约</option>
                                    <option value="1">初级合约</option>
                                    <option value="2">中级合约</option>
                                    <option value="3">高级合约</option>
                                </select>
                            </div>

                            <div class="layui-inline">
                                <select id="stuats">
                                    <option value="">合约状态</option>
                                    <option value="0">已拒绝</option>
                                    <option value="1">待审批</option>
                                    <option value="2">挂售中</option>
                                    <option value="3">买入，卖出</option>
                                    <option value="4">待确认</option>
                                    <option value="5">完成</option>
                                    <option value="6">申诉中，待解决</option>
                                </select>
                            </div>

                            <div class="layui-inline">
                                <select id="payType">
                                    <option value="">支付方式</option>
                                    <option value="0">可用余额</option>
                                    <option value="1">团队返利</option>
                                    <option value="2">推广返利</option>
                                    <option value="3">平台挂售</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                            </div>
                        </div>
                    </div>

                    <div class="layui-tab layui-tab-card" lay-filter="tab-all">
                        <ul class="layui-tab-title">
                            <li data-status="" class="layui-this">全部</li>
                            <li data-status="10">平台</li>
                          <!--  <li data-status="11">平台确认</li>-->
                            <li data-status="1">待审批</li>
                            <li data-status="6">申诉待处理</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <table class="layui-table" id="sysSellTable" lay-filter="sysSellTable"></table>
                            </div>
                            <div class="layui-tab-item">
                                <table class="layui-table" id="sysSellTable1" lay-filter="sysSellTable1"></table>
                            </div>
                            <!--<div class="layui-tab-item">
                                <table class="layui-table" id="sysSellTable4" lay-filter="sysSellTable4"></table>
                            </div>-->
                            <div class="layui-tab-item">
                                <button id="agreeList" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>批量同意</button>
                                <button id="refuseList" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>批量拒绝</button>
                                <table class="layui-table" id="sysSellTable2" lay-filter="sysSellTable2"></table>
                            </div>
                            <div class="layui-tab-item">
                                <table class="layui-table" id="sysSellTable3" lay-filter="sysSellTable3"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="tableBar">

    {{#  if(d.stuats!=1||d.stuats!=6 ){ }}
    <a class="layui-btn layui-btn-checked layui-btn-xs" lay-event="edit">查看</a>

    {{#  } }}

    {{#  if(d.stuats!=1 && d.stuats==2 &&d.standby1==1  ){ }}
    <a class="layui-btn layui-btn-checked layui-btn-xs" lay-event="unshelve">平台下架</a>

    {{#  } }}

    {{#  if(d.stuats==4&&d.standby1==1 ){ }}
    <a class="layui-btn layui-btn-checked layui-btn-xs" lay-event="affirm">平台确认</a>

    <a class="layui-btn layui-bg-red layui-btn-xs" lay-event="appeal">平台拒绝</a>

    {{#  } }}

    {{#  if(d.stuats==1 ){ }}
        <a class="layui-btn layui-bg-orange layui-btn-xs" lay-event="agree">同意</a>
        <a class="layui-btn layui-bg-red layui-btn-xs" lay-event="refuse">拒绝</a>
    {{#  } }}

    {{#  if(d.stuats==6 ){ }}
        <a class="layui-btn layui-bg-orange layui-btn-xs" lay-event="dismiss">申诉驳回</a>
        <a class="layui-btn layui-bg-red layui-btn-xs" lay-event="negotiate">协商</a>
        <a class="layui-btn layui-bg-red layui-btn-xs" lay-event="pass">申诉通过</a>
    {{#  } }}

</script>
@}